package edu.fim.core.factory;

import edu.fim.presentation.model.Menu;
import edu.fim.presentation.model.bean.Consumer;
import edu.fim.presentation.model.bean.Food;


public class ConsumerFactory {

	private static final Double CALORIAS_CONSUMIDAS_INICIALMENTE = 0.0;
	private static final Double LIMIAR_CALORIAS_PADRAO = 2000.0;
	
	public static Consumer createConsumer(
			Integer id,
			String nome,
			Integer idade,
			Double altura,
			Double peso) {
		Menu menu = new Menu();
		menu.add(new Food(1, "Banana", 456.78));
		menu.add(new Food(3, "Apple", 235.12));
		menu.add(new Food(4, "Chocolate", 2001.0));
		Consumer consumidor = new Consumer(
				id,
				nome,
				idade,
				altura,
				peso,
				CALORIAS_CONSUMIDAS_INICIALMENTE,
				LIMIAR_CALORIAS_PADRAO,
				menu);
		consumidor.resetImcSituation();
		return consumidor;
	}
}